package biz.inspeed.test.gson;

import com.google.gson.Gson;

public class OOMain {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		OO oo = new OO();
		for(int i = 0;i < 3; i ++){
			oo.o1s.add(new O1());
			oo.o2s.add(new O2());
		}
		
		Gson gson = new Gson();
		String json = gson.toJson(oo);
		System.out.println(json);
		
		OO fromJson = gson.fromJson(json, OO.class);
		System.out.println();
		
	}

}
